package com.zs.toolbox.web2j.system.core.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.List;

/**
 * @author shuai.zhang  on 2018/10/10
 * @description
 */
@ApiModel("创建用户消息请求")
@Data
public class WtSaveUserMessageRequest {
    @ApiModelProperty("消息类型")
    @NotBlank(message = "消息类型不能为空")
    String messageType;

    @ApiModelProperty("消息标题")
    @NotBlank(message = "消息标题不能为空")
    String messageTitle;

    @ApiModelProperty("消息内容")
    String messageContent;

    @ApiModelProperty("消息接收者")
    @Size(min = 0,max = 100,message = "支持一次发送1-100个用户")
    @NotNull(message = "接受者不能为空")
    List<Long> receiveUserId;
}
